Skip to content

SK-2986 use PAT for release version-bump push to bypass branch protection#271

Merged
Devesh-Skyflow merged 1 commit into
mainfrom
devesh/SK-2986-release-bypass-token
Jul 24, 2026
Merged

SK-2986 use PAT for release version-bump push to bypass branch protection#271
Devesh-Skyflow merged 1 commit into
mainfrom
devesh/SK-2986-release-bypass-token

Conversation

@Devesh-Skyflow

Copy link
Copy Markdown
Collaborator

Why

Branch-protection rulesets now cover main (force-push/deletion active; PR + build-check staged). The automated release version-bump commit is pushed directly to main as github-actions[bot], which is not a ruleset bypass actor — so once PR enforcement is activated the push would be rejected and releases would break.

What

Point the release actions/checkout at PAT_ACTIONS (a repo-admin credential). checkout persists it and the later bump push reuses it, satisfying the ruleset Repository Admin bypass.

⚠️ Verify before activating PR enforcement

Confirm this repo's PAT_ACTIONS is owned by a repo admin with Contents: write (it is a per-repo secret). If not, point token: at a write-capable admin PAT/App. Alternative discussed in the java rollout: drop the version-bump push entirely so no bypass is needed.

Part of the SDK branch-protection rollout. Ref: SK-2986

🤖 Generated with Claude Code

…tion

Branch-protection rulesets now enforce PR + approval + a build status
check on main (staged). The automated version-bump commit is pushed
directly to main as github-actions[bot], which is not a ruleset bypass
actor, so the push would be rejected.

Point the release checkout at PAT_ACTIONS (a repo-admin credential) so
its token is persisted and reused for the push, satisfying the ruleset's
repo-admin bypass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Devesh-Skyflow
Devesh-Skyflow merged commit 20bc6cc into main Jul 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant